/**
 * @author fenglei.you
 */
function LayerTest(){}
LayerTest.prototype.go=function(){
	var stage=new Me.Stage(400,400,'test_area');
	stage.init(0,0);
	
	var bgLayer = new Me.Layer(
		{
			width:400,
			height:400,
			x:0,
			y:0,
			
			bgImage:'../img/layersbg.png',
			bgImageX:20,
			bgImageY:80,
			bgImageW:200,			
			bgImageH:30
		}
	);
	bgLayer.render(stage.getContext());
	stage.appendChild(bgLayer);
	
	var form=new Me.Form(
		{
			width:300,
			height:300,
			x:0,
			y:0,
			
			bgImage:'../img/formbg.png',
			bgImageX:20,
			bgImageY:80,
			bgImageW:200,			
			bgImageH:30
			
			,			
			childs:[
				{
					type:'panel',
					width:300,
					height:50,
					x:0,
					y:0,
					
					bgImage:'../img/formbg.png',
					bgImageX:0,
					bgImageY:0,
					bgImageW:300,	
					bgImageH:50
				},
				{
					type:'button',
					width:25,
					height:25,
					x:275,
					y:1,
					
					bgImage:'../img/cancel.png',
					bgImageX:0,
					bgImageY:0,
					bgImageW:25,	
					bgImageH:25		
				},
				{
					type:'button',
					width:150,
					height:60,
					x:70,
					y:100,
					
					text:'Start',
					
					bgImage:'../img/btn.png',
					bgImageX:0,
					bgImageY:0,
					bgImageW:160,	
					bgImageH:60					
				},
				{
					type:'button',
					width:150,
					height:60,
					x:70,
					y:200,
					
					text:'About',
					
					bgImage:'../img/btn.png',
					bgImageX:0,
					bgImageY:0,
					bgImageW:160,	
					bgImageH:60					
				}
			]
			/**/
		}
	);
	form.render(stage.getContext());
	
	stage.appendChild(form);
}
